define(['mCommon'], function (MCommon) {
    function Attachment(params) {
        this.fields=[
            {name:'title',alias:'名称',validator:['required']},
            {name:'uploadFile',type:'file',alias:'文件',maxSize:1000*1024*1024,validator:['required']},
            {name:'path',alias:'地址'},
            {name:'fileSize',alias:'大小'},
            {name:'fileType',alias:'类型'},
            {name:'archived',alias:'归档'}
        ];
        this.proxy = {url:'/basefiles/{0}/basefiles/{1}/basefiles'}
        this.form ={
            add:'AttachmentAddForm',
            edit:'AttachmentEditForm'
        };
        this.callParent(params);
    }

    Attachment.extend(MCommon);

    return Attachment;
});
